package com.elysia.newsservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.elysia.newsservice.domain.dto.GameNewsDTO;
import com.elysia.newsservice.domain.entity.GameNews;
import com.elysia.newsservice.domain.vo.GameNewsVO;
import com.elysia.newsservice.result.Result;

import java.util.List;

/**
 * 公告服务接口
 */
public interface IGameNewsService extends IService<GameNews> {
    Result<GameNewsVO> addGameNews(GameNewsDTO gameNewsDTO);
    Result<List<GameNewsVO>> getAllGameNews();
    Result<GameNewsVO> updateGameNews(Long id, GameNewsDTO gameNewsDTO);
    /**
     * 删除公告
     * @param id 删除的id
     * @return 删除结果
     */
    Result<String> deleteGameNews(Long id);
}
